<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.*" %>
<%@ page import="java.text.*" %>
<%@ page import="com.ionglobal.db.SequenceManager" %>
<%@ page import="com.ionglobal.lib.*" %>
<%@ page import="com.ionglobal.misc.*" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="com.dhec.ggs.*"%>
<%@ include file="/inc/init_include.jsp" %>
<%@ include file="/inc/config.jsp" %>
<%
	String IID = request.getParameter("IID");
	//System.out.println("IID" + IID);
	String sql = "";
	SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
	Date date = new Date();
	String reciveDate = sdf.format(date);
	if(IID == null || IID.equals("") || IID.indexOf("_") == -1){
		return;
	}	
	if(IID.startsWith("ECID")){		
		IID = IID.substring(IID.indexOf("_") + 1);
		sql = "update GGS_ENGINEERCHANGESURVEY set  DRECIVEDATE = to_date('" + reciveDate + "','yyyy-MM-dd') where iid = " + IID;
	}else{	
		IID = IID.substring(IID.indexOf("_") + 1);
		sql = "update GGS_APPROVESURVEY set  DRECIVEDATE = to_date('" + reciveDate + "','yyyy-MM-dd') where iid = " + IID;
	}
	System.out.println(sql);
	boolean flag = dbi.execute(sql);
//	if(flag){
%>
<%@ include file="/inc/init_free.jsp" %>